import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

// 全局指令
Vue.directive('beauty',function(element,{value}){
  element.innerText += value
  element.style.color = 'red'
  element.style.backgroundColor = 'yellow'
  element.style.boxShadow = '0 0 10px'
})

new Vue({
  el:'#app',
  render:h => h(App),
})